from selenium.webdriver.common.by import By
from base import Base
class Page(Base):
    def sou(self):
        loc=(By.XPATH,'//android.widget.TextView[@text="搜商品名称 作者 出版社 ISBN"]')
        ele=self.zhao(loc)
        return ele
    def sou1(self):
        loc=(By.CLASS_NAME,'android.widget.EditText')
        ele=self.zhao(loc)
        return ele
    def dianjisouuso(self):
        loc=(By.ID,'com.kongfz.app:id/tvSearch')
        ele = self.zhao(loc)
        return ele
    def tu(self):
        loc=(By.ANDROID_UIAUTOMATOR,'new UiSelector().resourceId("com.kongfz.app:id/ivPic").instance(6)')
        ele = self.zhao(loc)
        return ele
    def tianjiagwc(self):
        loc=(By.XPATH,'//android.widget.TextView[@resource-id="com.kongfz.app:id/tvAddCart1"]')
        ele = self.zhao(loc)
        return ele
    def zhegeyemian(self):
        loc=(By.XPATH,'//android.widget.TextView[@text="我的阿勒泰"]')
        ele = self.zhao(loc)
        return ele